import request from '@/utils/request'
  
  // getClassPageList: query => post('/api/admin/student_class/page', query),
  export function getClassPageList(data) {
    return request({
      url: '/api/admin/student_class/page',
      method: 'post',
      data: data
    })
  }
  // createClass: query => post('/api/admin/student_class/edit', query),
  export function createClass(data) {
    return request({
      url: '/api/admin/student_class/edit',
      method: 'post',
      data: data
    })
  }
  // selectClass: id => post('/api/admin/student_class/select/' + id),
  export function selectClass(id) {
    return request({
      url: '/api/admin/student_class/select/' + id,
      method: 'post'
    })
  }
  // getCurrentClass: () => post('/api/admin/class/current'),
  export function getCurrentClass(data) {
    return request({
      url: '/api/admin/class/current',
      method: 'post',
      data: data
    })
  }
  // changeStatus: id => post('/api/admin/student_class/changeStatus/' + id),
  export function changeStatus(id) {
    return request({
      url: '/api/admin/student_class/changeStatus/' + id,
      method: 'post'
    })
  }
  // deleteClass: id => post('/api/admin/student_class/delete/' + id),
  export function deleteClass(id) {
    return request({
      url: '/api/admin/student_class/delete/' + id,
      method: 'post'
    })
  }

